/*  1:   */ package org.intellij.plugins.relaxNG;
/*  2:   */ 
/*  3:   */

import com.intellij.util.xml.DomFileDescription;
import com.intellij.util.xml.highlighting.DomElementsAnnotator;
import org.intellij.plugins.relaxNG.model.annotation.ModelAnnotator;
import org.intellij.plugins.relaxNG.xml.dom.*;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */
/* 11:   */ 
/* 12:   */ public class RngDomFileDescription<T>
/* 13:   */   extends DomFileDescription<T>
/* 14:   */ {
/* 15:   */   public RngDomFileDescription(Class<T> paramClass, String paramString)
/* 16:   */   {
/* 17:13 */     super(paramClass, paramString, new String[0]);
/* 18:14 */     registerNamespacePolicy("RELAX-NG", new String[] { "http://relaxng.org/ns/structure/1.0" });
/* 19:   */   }
/* 20:   */   
/* 21:   */   public boolean isAutomaticHighlightingEnabled()
/* 22:   */   {
/* 23:18 */     return true;
/* 24:   */   }
/* 25:   */   
/* 26:   */   public DomElementsAnnotator createAnnotator()
/* 27:   */   {
/* 28:22 */     return new ModelAnnotator();
/* 29:   */   }
/* 30:   */   
/* 31:   */   public static class RngGrammarDescription
/* 32:   */     extends RngDomFileDescription<RngGrammar>
/* 33:   */   {
/* 34:   */     public RngGrammarDescription()
/* 35:   */     {
/* 36:27 */       super("grammar");
/* 37:   */     }
/* 38:   */   }
/* 39:   */   
/* 40:   */   public static class RngElementDescription
/* 41:   */     extends RngDomFileDescription<RngElement>
/* 42:   */   {
/* 43:   */     public RngElementDescription()
/* 44:   */     {
/* 45:33 */       super("element");
/* 46:   */     }
/* 47:   */   }
/* 48:   */   
/* 49:   */   public static class RngChoiceDescription
/* 50:   */     extends RngDomFileDescription<RngChoice>
/* 51:   */   {
/* 52:   */     public RngChoiceDescription()
/* 53:   */     {
/* 54:39 */       super("choice");
/* 55:   */     }
/* 56:   */   }
/* 57:   */   
/* 58:   */   public static class RngGroupDescription
/* 59:   */     extends RngDomFileDescription<RngGroup>
/* 60:   */   {
/* 61:   */     public RngGroupDescription()
/* 62:   */     {
/* 63:45 */       super("group");
/* 64:   */     }
/* 65:   */   }
/* 66:   */   
/* 67:   */   public static class RngInterleaveDescription
/* 68:   */     extends RngDomFileDescription<RngInterleave>
/* 69:   */   {
/* 70:   */     public RngInterleaveDescription()
/* 71:   */     {
/* 72:51 */       super("interleave");
/* 73:   */     }
/* 74:   */   }
/* 75:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.plugins.relaxNG.RngDomFileDescription

 * JD-Core Version:    0.7.0.1

 */